package com.java.test;

public class Person {
	// 属性
	private String perName;
	String perSex;
	protected String perAddress;
	private int perAge;

	// 行为
	public void doEating() {
		System.out.println(perName + "  is eating!!!!  ");
	}

	public void doSleeping() {
		System.out.println(perName + "  is sleeping!!!   ");
	}

	// getter,setter方法

	public String getPerName() {
		return perName;
	}

	public void setPerName(String perName) {
		this.perName = perName;
	}

	public String getPerSex() {
		return perSex;
	}

	public void setPerSex(String perSex) {
		this.perSex = perSex;
	}

	public String getPerAddress() {
		return perAddress;
	}

	public void setPerAddress(String perAddress) {
		this.perAddress = perAddress;
	}

	public int getPerAge() {
		return perAge;
	}

	public void setPerAge(int perAge) {
		this.perAge = perAge;
	}

}
